<?php
/**
 * User:于小涛
 * Date:2020/9/15
 * Time:14:07
 */
namespace app\api\controller\system;

use app\api\BaseController;
use app\api\model\rbac\Admin as AdminModel;
use think\App;

class Admin extends BaseController{
    private $obj_admin_model=null;
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->obj_admin_model = new AdminModel();
    }

    public function getTuiGuangAdminList(){
        $arr_list=$this->getAllAdmin(config('project.role_id.tuiguangzhuanyuan.id'),'id','ra.id,ra.name');
        $arr_re=[
            'list'=>array_values($arr_list)
        ];
        return output_data($arr_re);
    }

    public function getChuangYeAdminList(){
        $arr_list=$this->getAllAdmin(config('project.role_id.chuangyeguwen.id'),'id','ra.id,ra.name');
        $arr_re=[
            'list'=>array_values($arr_list)
        ];
        return output_data($arr_re);
    }

}